|
メニューの場所 |
---|
OpenSCAD -> Add OpenSCAD Element |
ワークベンチ |
OpenSCAD |
デフォルトのショートカット |
None |
バージョンで導入 |
- |
も参照してください |
None |
タスクパネルにOpenSCADのコードを入力し、OpenSCADバイナリを実行することでOpenSCADのエレメントを追加します(OpenSCADが必要です)。
'as mesh'が選択されている場合、OpenSCADはメッシュをレンダリングします。
Addが押されるたびにOpenSCADのコードが実行されエレメントがインポートされます。
この機能はOpenSCADの出力で表示される以上の文法チェック、エラーは出力しません。 エレメントが見つからない場合はuse<>ステートメントやinclude<>ステートメントで指定したパスが間違っている可能性があります。
通常の場合と同様、ライブラリはアクセス可能でなければなりません。下記のように書くとサンプルにアクセス可能です。
include <../examples/example001.scad>;
上記ではOpenSCADアイコンとしても知られる最初のサンプルをインクルードしています。
Libraries should be accessible as usual, whereas example can be reached as stated below.
include <../examples/example001.scad>;
would include the first examples also known as the OpenSCAD icon
FreeCAD needs to be told where to find the OpenSCAD executable:
/usr/bin/openscad
) directly into the line input right to the buttonNote: It is also possible to add another optional Parameter which controls the maximum sides of a polygon before it is considered a circle (fn).
FreeCADバージョン0.14以降、上記の設定が空の場合、FreeCADはOpenSCAD実行可能ファイルを検索します。